package com.example.service.impl;

import com.example.entity.ProductOrder;
import com.example.mapper.ProductOrderMapper;
import com.example.service.ProductOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther: Nostalgia
 * @Date: 2020/7/6 17:02
 * @Description:
 */
@Service
public class ProductOrderServiceImpl implements ProductOrderService {
    @Autowired
    private ProductOrderMapper mapper;
    @Override
    public List<ProductOrder> getAllProductOrder(String productName) {
        return mapper.getAllProductOrder(productName);
    }

    @Override
    public int deleteProductOrderById(int id) {
        return mapper.deleteProductOrderById(id);
    }

    @Override
    public int updateStatus(int id) {
        return mapper.updateStatus(id);
    }
}
